//////////////////////////////////////////////////////////////////////////////
//
// FILE:  event.h
//
// DESCRIPTION:  This class encapsulates a chat event from the bnet server.  
// It contains the data elements extracted from the chat server.  
//
#ifndef EVENT_H
#define EVENT_H


#include<iostream>
#include<string>

using namespace std;

#include "../conGuy/types.h"

class event {
 public:
  event()  { exit_now = false; try_again = false; }
  ~event() {}

  // Tell the bot to exit right now.  Some error occurred.
  bool exit_now;
  // This event contains no information.  "try_again" at getting an event.
  bool try_again;
  
  // Actual values contained in a real SID_EVENT packet:
  u32 eventID;
  u32 flags;
  u32 ping;
  string username;
  string text;
};

#endif



//////////////////////////////////////////////////////////////////////////////
// End of file
//////////////////////////////////////////////////////////////////////////////
